package at.codebase.core.search;

import java.util.List;

import at.codebase.db.entities.EItem;

/**
 * @author Daniel Marth <danielmarth@gmx.at>
 */
public class ItemSearchResultInfo {

	private long count;
	private List<ItemSearchResult> results;
	
	public ItemSearchResultInfo(final long c, List<ItemSearchResult> r, List<EItem> itemList) {
		count = c;
		results = r;
		for (int i = 0; i < itemList.size(); i++) {
			results.get(i).setItem(itemList.get(i));
		}
	}

	public long getCount() {
		return count;
	}

	public List<ItemSearchResult> getResults() {
		return results;
	}
	
}
